<!-- PersonalInfo.vue -->
<template>
  <div class="card">
    <ProfileCard></ProfileCard>
    <el-button
    type="warning"
    style="width: 100%;
    height: 80px;
    margin-bottom: 5%;
    border-radius: 8px;"
    @click="review"
    >
      <p class="student-home-button">
        知识回顾
      </p>
    </el-button>
    <el-button
    type="primary"
    style="width: 100%;
    height: 80px;
    margin-left: 0;
    border-radius: 8px;"
    @click="StuPreview"
    >
      <p class="student-home-button">
        预习新知
      </p>
    </el-button>
  </div>
  </template>

<script setup name="Info">
import ProfileCard from './ProfileCard.vue';
import router from '@/router'
import preview from '@kangc/v-md-editor/lib/preview'
const review = () => {
  router.push('/studentrev')
}
const StuPreview = () => {
  router.push('/preview')
}
</script>

<style scoped>
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #fff;
}
.info-list {
  margin: 20px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px; /* Space between items */
}

.info-item {
  margin: 10px 40px;
  display: flex;
  align-items: center;
  font-size: 16px; /* Adjust font size as needed */
  color: #4A4A4A; /* Default text color */
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px; /* Space between dot and text */
}

.blue {
  background-color: #3498db; /* Blue color */
}

.green {
  background-color: #2ecc71; /* Green color */
}

.red {
  background-color: #e74c3c; /* Red color */
}

.info-item strong {
  font-weight: bold; /* Bold text for emphasis */
}

.student-home-button {
  font-size: 25px;
  font-family: '微软雅黑';
}

</style>
